# -- coding: utf-8 -- 
# Name: external

from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()
DIALECT = 'MySQL'
DRIVER = 'MySQLdb'
USERNAME = 'root'
PASSWORD = 'root'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'demo_11'
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT,
                                                                       DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ECHO = True
